#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Created on 17-12-26
@author: yzw
@desc:
"""
import uuid
import hashlib


# uuid
def get_id():
	return uuid.uuid1()


# md5加密
def md5(s):
	m = hashlib.md5()
	m.update(s)
	return m.hexdigest()
